package com.ruoyi.wms.domain.bo.employee;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.mybatis.core.domain.BaseEntity;
import com.ruoyi.wms.domain.entity.employee.PMetricDetails;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 绩效记录业务对象 p_metric_details
 *
 * @author 邓滔滔
 * @date 2024-12-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PMetricDetails.class, reverseConvertGenerate = false)
public class PMetricDetailsBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 员工ID
     */
    @NotNull(message = "员工ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long employeeId;

    /**
     * 等级
     */
    @NotNull(message = "等级不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long level;

    /**
     * 积分
     */
    private BigDecimal points;

    /**
     * p项薪资
     */
    private BigDecimal pSalay;

    /**
     * 计算周期
     */
    @NotNull(message = "计算周期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date calculationPeriod;

    /**
     * 备注
     */
    private String remarks;


}
